package ru.javadevelop.homefinans.svc;

import com.neurospeech.wsclient.*;
import org.w3c.dom.*;

public class HomeFinansService_SendCosts extends WSObject
{
	
	private ArrayOfCost _costs;
	public ArrayOfCost getcosts(){
		return _costs;
	}
	public void setcosts(ArrayOfCost value){
		_costs = value;
	}
	
	public static HomeFinansService_SendCosts loadFrom(Element root) throws Exception
	{
		if(WSHelper.isNull(root)){
			return null;
		}
		HomeFinansService_SendCosts result = new HomeFinansService_SendCosts();
		result.load(root);
		return result;
	}
	
	
	protected void load(Element root) throws Exception
	{
		this.setcosts(ArrayOfCost.loadFrom(WSHelper.getElement(root,"costs")));
	}
	
	
	
	public Element toXMLElement(WSHelper ws, Element root)
	{
		Element e = ws.createElement("ns6:SendCosts");
		fillXML(ws,e);
		return e;
	}
	
	public void fillXML(WSHelper ws,Element e)
	{
		if(_costs != null)
			ws.addChildNode(e, "ns6:costs",null,_costs);
	}
	
}
